﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

using System.ServiceModel;
using System.ServiceModel.Description;
using System.ServiceModel.Channels;
using System.Xml;
using System.Xml.Serialization;
using System.Runtime.Serialization;
using System.Net;
using System.IO;
using Daenet.Syndication; 

namespace SmartDeviceProject1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

     
        private void button2_Click(object sender, EventArgs e)
        {
            SyndicationFeed feed = SyndicationFeed.Load(new Uri("http://rss.cnn.com/rss/cnn_topstories.rss"));
            feed = SyndicationFeed.Load(new Uri("http://feeds.reuters.com/reuters/topNews"));
            //foreach(SyndicationItem feedItem in feed.Items)
            //{
            //    string msg = String.Format("Title: {0}\nAuthor:{1}\n", feedItem.Title, feedItem.Authors[0].Name, feedItem.Content.Value);
            //    MessageBox.Show(msg);
            //    break;
            //}
        }
    }
}